package com.max.xihu.patterns.simple;

/**
 * @Author: Max
 * @Date: 2020-09-06 10:34
 * @Description:
 */
public class AdminUser extends User{

    private Long id;
    private String name;

    public AdminUser(Long id,String name){
        this.id = id;
        this.name = name;
    }

    public static AdminUser load(Long id){
        AdminUser adminUser = queryCacheById(id);
        return adminUser;
    }


    public static AdminUser queryCacheById(Long id){
        return new AdminUser(id,"");
    }
}
